package newPan3d.content.skill
{
	import _Pan3D.particle.interfaces.IParticle;
	
	import _me.Scene_data;

	public class SkillLevel
	{
		private var _particleList:Vector.<IParticle>;
		public function SkillLevel()
		{
			Scene_data.skillLevel = this;
			_particleList = new Vector.<IParticle>;
		}
		public function upData():void
		{
			for(var i:int;i<_particleList.length;i++){
				_particleList[i].update();
			}
		}
		public function addSkill(skill:IParticle):void{
			_particleList.push(skill);
		}
		public function removeSkill(skill:IParticle):void{
			var index:int = _particleList.indexOf(skill);
			if(index != -1){
				_particleList.splice(index,1);
			}
		}
	}
}